package com.speed.plus;

import com.jfinal.plugin.IPlugin;

/**
 * 插件，可自行编写对应的逻辑，实现
 * @author zcj
 *
 */
public class MyPlus implements IPlugin {

	private boolean start = false;

	public MyPlus(String msg) {
		System.out.println(msg);
		start = true;
	}

	public void printHello() {
		System.out.println("Hello Plus!");
	}

	@Override
	public boolean start() {
		return start;
	}

	@Override
	public boolean stop() {
		return !start;
	}

}
